package edu.sctu.zhangwang.month201505.day20150515;

/**
 * Created by user10 on 2015/5/15.
 */
public class TextMain {
    public static void main(String[] args) {

        int sum = 0;
        FirstData[] firstData = new FirstData[10];

        FirstData firstData2 =  new FirstData();

        TextChild textChild = new TextChild(firstData2);
        for (int i=1;i<=10;i++){



            firstData2.setName("张望" + i);
            firstData2.setNumber(10086 + i);
            firstData2.setAge(20 + i);
            firstData2.setScore(90 + i);
            firstData2.setAddress("四川" + i);
            firstData2.setSex("男" );

            firstData[i] = firstData2;




            textChild.jiKou(firstData2.getAge());
            sum += textChild.j;

        }
        System.out.print(sum);
    }
}
